package com.twu.biblioteca.util;

import java.util.Scanner;

public class Cli {
    public int promptInt(String message) {
        output(message);
        return inputInt();
    }

    public int inputInt() {
        return new Scanner(System.in).nextInt();
    }

    public String prompt(String message) {
        output(message);
        return input();
    }

    public String input() {
        return new Scanner(System.in).next();
    }

    public void output(String message) {
        System.out.println(message);
    }
}
